package cn.cqie.attendance.manager.pojo;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author king james
 * @create 2021-07-13-{TIME}
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="LeavesSearch对象", description="")
public class AdminLeavesSearch extends Model {
    private static final long serialVersionUID = -6076396448222680984L;

    @ApiModelProperty(value = "学生学号")
    private String stuNumber;

    @ApiModelProperty(value = "请假审批状态(0 审批不通过 1 审批中 2 审批通过)")
    private Integer leaveStatus;

    @ApiModelProperty(value = "班级名")
    private String className;

    @ApiModelProperty(value = "学院名")
    private String collegeName;

    @ApiModelProperty(value = "年级名")
    private String gradeName;

    @ApiModelProperty(value = "专业名")
    private String majorName;

    @ApiModelProperty(value = "小组名")
    private String groupName;

    @ApiModelProperty(value = "班主任（审批人）")
    private String headMaster;

    @ApiModelProperty(value = "请假主题")
    private String leaveTheme;

    @ApiModelProperty(value = "请假原因(1 事假 0 病假 2 其他)")
    private Integer leaveReason;

    @ApiModelProperty(value = "学生名")
    private String stuName;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "搜索开始时间")
    private Date startApplyTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "搜索结束时间时间")
    private Date endApplyTime;

}
